package util

const (
	CAR_EXIST   = 1100
	CAR_CANCEL  = 1101
	CAR_SUCCESS = 1110

	ORDER_EXIST   = 1200
	ORDER_CANCEL  = 1201
	ORDER_SUCCESS = 1210
)

var CarStatus = map[int]string{
	CAR_EXIST:   "购物车仅存在",
	CAR_CANCEL:  "购物车取消",
	CAR_SUCCESS: "购物车支付成功",
}

var OrderStatus = map[int]string{
	ORDER_EXIST:   "订单仅存在",
	ORDER_CANCEL:  "订单取消",
	ORDER_SUCCESS: "订单支付成功",
}

func GetCarStatus(code int) string {
	return CarStatus[code]
}

func GetOrderStatus(code int) string {
	return OrderStatus[code]
}
